load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "promhelperclient",
    srcs = ["client.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/promhelperclient",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/roachprod/config",
        "//pkg/roachprod/logger",
        "//pkg/roachprod/roachprodutil",
        "//pkg/roachprod/vm/gce",
        "//pkg/util/httputil",
        "@com_github_cockroachdb_errors//:errors",
        "@in_gopkg_yaml_v2//:yaml_v2",
        "@org_golang_google_api//idtoken",
        "@org_golang_x_oauth2//:oauth2",
    ],
)

go_test(
    name = "promhelperclient_test",
    srcs = ["client_test.go"],
    embed = [":promhelperclient"],
    deps = [
        "//pkg/roachprod/logger",
        "//pkg/roachprod/roachprodutil",
        "@com_github_stretchr_testify//require",
        "@in_gopkg_yaml_v2//:yaml_v2",
        "@org_golang_google_api//idtoken",
        "@org_golang_x_oauth2//:oauth2",
    ],
)
